package com.yuyou.fn.educational.service.impl;

import com.github.wens.framework.service.impl.SuperServiceImpl;
import com.yuyou.fn.common.util.TimeUtils;
import com.yuyou.fn.educational.entity.FinishLecture;
import com.yuyou.fn.educational.mapper.FinishLectureMapper;
import com.yuyou.fn.educational.service.IFinishLectureService;
import org.springframework.stereotype.Service;

/**
 *
 * FinishLecture 表数据服务层接口实现类
 *
 */
@Service
public class FinishLectureServiceImpl extends SuperServiceImpl<FinishLectureMapper, FinishLecture,Long> implements IFinishLectureService {


    @Override
    public void addFinishLecture(Long classId, Integer lectureNo) {
        FinishLecture finishLecture = new FinishLecture();
        finishLecture.setClassId(classId);
        finishLecture.setLectureNo(lectureNo);
        finishLecture.setIsCalRoomCost(0);
        finishLecture.setIsCalTeacherCost(0);
        finishLecture.setCreateTime(TimeUtils.now());
        finishLecture.setUpdateTime(TimeUtils.now());
        
        insertSelective(finishLecture);

    }
}